home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
contrib
/
supported
/
xypic
/
src
/
xyd.mf
< prev
next >
Wrap
Text File
|
1995-03-15
|
2KB
|
56 lines
% $Id: xyd.mf,v 2.7 1992/12/14 01:41:26 kris Exp $
%
% XYD: generate characters of `XY-pic Directional' font.
% Copyright (c) 1992 Kristoffer H. Rose <kris@diku.dk>
%
% This file is part of the XY-pic macro package.
%
% The XY-pic macro package is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or (at your
% option) any later version.
%
% The XY-pic macro package is distributed in the hope that it will be
% useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
% Public License for more details.
%
% You should have received a copy of the GNU General Public License along
% with this macro package; if not, write to the Free Software Foundation,
% Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
% _________________________________________________________________________
%
% CONTENTS: Generate `directional' characters from 0..127 by calling
% `chartowards(Code, Dx, Dy)' with
%
% Code: 0 15 31 47 63 79 95 111 127
% Dx,Dy: -15/16,-1 0,-1 1,-1 1,0 1,1 0,1 -1,1 -1,0 -1,-1
% / | \
% Direction: o o o o- o o o -o o
% / | \ /
%
% where the intervening codes are got by interpolating either Dx or Dy as
% appropriate.
% _________________________________________________________________________
%
% Parameters:
%
font_coding_scheme:="XY-pic directional";
%
font_x_height segx#;
font_quad segl#;
fontdimen 8: segw#; % default_rule_thickness
%
% Characters:
%
for cc = 0 step 1 until 31: chartowards(cc,(cc-15)/16, -1); endfor;
for cc = 32 step 1 until 63: chartowards(cc, 1, (cc-47)/16); endfor;
for cc = 64 step 1 until 95: chartowards(cc,(79-cc)/16, 1); endfor;
for cc = 96 step 1 until 127: chartowards(cc, -1,(111-cc)/16); endfor;
%
% $Log: xyd.mf,v $
% Revision 2.7 1992/12/14 01:41:26 kris
% Generate all XY-pic `directional' characters.
%
% Extracted from xyatip10.mf [Revision 2.1 1992/01/02 14:54:07 kris]